<!-- BEGIN:main -->

    <script type="text/javascript">

        function checkValid() {
            var form = document.getElementById("frmContact");
            if (document.getElementById("txtFullName").value == "") {
                alert('Vui lòng nhập họ tên');
                document.getElementById("txtFullName").focus();
                return false;
            }
            if (!isEmail(document.getElementById("txtEmail").value)) {
                alert("Email không hợp lệ");
                document.getElementById("txtEmail").focus();
                return false;
            }
            if (document.getElementById("txtContent").value == "") {
                alert("Vui lòng nhập nội dung");
                document.getElementById("txtContent").focus();
                return false;
            }
            if (document.getElementById("txtSecurityCode").value == "") {
                alert("Vui lòng nhập mã xác nhận");
                document.getElementById("txtSecurityCode").focus();
                return false;
            }
            form.hdAction.value = 'sendContact';
            form.submit();
        }

        function isEmail(s)
        {
            if (s == "")
                return false;
            if (s.indexOf(" ") > 0)
                return false;
            if (s.indexOf("@") == -1)
                return false;
            var i = 1;
            var slen = s.length;
            if (s.indexOf(".") == -1 || s.indexOf(".") == s.length - 1)
                return false;
            if (s.indexOf("..") != -1)
                return false;
            if (s.indexOf("@") != s.lastIndexOf("@"))
                return false;
            var str = "abcdefghijklmnopqrstuvwxyz1234567890@-._ABCDEFGHIJKLMNOPQRSTUVWXYZ";
            for (var j = 0; j < s.length; j++)
                if (str.indexOf(s.charAt(j)) == -1)
                    return false;
            return true;
        }

    </script>
</head>


<div class="d_component" style="position: relative">

               
            <div class="d_title_component1" style="text-align: left">
                LIÊN HỆ
            </div>
        

 <div class="d_content_component" > 
    <div id="rowWraper" class="row">
                 
                    <div id="lh_col_left" class="col">

     
                        <iframe  style="margin-left:10px;" 
                        width="100%" height="250"  
                         frameborder="0" 
                         src="https://maps.google.com/maps?f=q&source=s_q&hl=vi&geocode=&q…154324&t=m&z=13&iwloc=A&cid=5168619892300203887&output=embed" 
                         marginwidth="0" 
                         marginheight="0" 
                         scrolling="no"></iframe>

                         <br></br>
                         <small>
                         <a class="xembandocolon"  href="https://maps.google.com/maps?f=q&source=s_q&hl=vi&geocode=&q…154324&t=m&z=13&iwloc=A&cid=5168619892300203887&output=embed" target="_blank" jsaction="mouseup:placeCard.largerMap" jstcache="25">
                         Xem Bản đồ cỡ lớn hơn</a>
                         </small>
                    </div>






     
                    <div id="lh_col_right" class="col">

                        <div style="float:left;text-align: left;position: relative;width:460px;padding-left:30px;">
                        <p style="font-weight: bold;color:#2A9900;font:700 20px arial;">{SITENAME}</p>
                        <p> Địa chỉ: {ADDRESS}</p>
                        <p> Điện thoại: {PHONE_NUMBER}</p><p>Fax: 07103. 918 831</p>
                        </div>
                    </div>

    </div>

<div style="font:600 17px arial;color:#333;font-weight: 600;margin-left:10px;">Vui lòng điền đầy đủ các trường bên dưới</div>
 <form onsubmit="return checkValid();" name="frmContact" id="frmContact" method="post" class="tsc_form_contact_light">
            
        <div style="float:left;width:450px;position: relative;margin:10px 5px 10px 10px;">
            <label for="name">Họ tên <span style="color:red">(*)</span></label>
            <input type="text" id="txtFullName" name="txtFullName" notnull="1"  class="form-input" required />
            
            <label for="email">Email <span style="color:red">(*)</span></label>
            <input type="email"  id="txtEmail" name="txtEmail" email="1" notnull="1"  class="form-input" required />
            
            <label for="subject">Công ty <span></span></label>
            <input type="text" name="txtCompany"  class="form-input" />

            <label for="subject">Địa chỉ<span></span></label>
            <input type="text"  name="txtAddress"  class="form-input" />
           
            <label for="subject">Điện thoại<span></span></label>
            <input type="text" id="txtTelephone" name="txtTelephone" notnull="1"  class="form-input" />
           

        </div>

        <div style="float:right;width:450px;position: relative;margin:10px 5px 10px 10px;">
            <label for="subject">Fax<span></span></label>
            <input type="text" name="txtFax"  class="form-input" />

            <label for="name">Tiêu đề <span style="color:red">(*)</span></label>
            <input type="text" id="txtTitle" name="txtTitle" notnull="1"  class="form-input" required />
            
            <label for="message">Nội dung <span style="color:red">(*)</span></label>
            <textarea id="txtContent" name ="txtContent" rows="3" cols="30" notnull="1" alt="Noi dung"  class="form-input" required></textarea>
            

             <label for="name">Mã xác nhận <span style="color:red">(*)</span></label>

            <input  style="float: left" id="txtSecurityCode" type="text" name="txtSecurityCode" maxlength="10" size='30'  class="form-input" required/>
            <img style="float: left" src="./components/com_contact/views/random_image.php" />
            
            
        </div>

        <div class="d_field_row" style="text-align: center;">
                        <input class="form-btn" type=submit value=" Gửi " name="send">
                        <input class="form-btn" type=reset value=" Làm lại " name="cancel">
           </div>

            <input type="hidden" name="hdAction" id="hdAction" value="" />
          </form>

</div>
</div>

<!-- END:main -->
